﻿package mortal.game.control
{
    import Message.DB.Tables.*;
    import mortal.game.scene3D.ai.*;
    import mortal.game.view.copy.*;
    import mortal.game.view.heroArena.view.*;

    public class ArenaRestRoomController extends CopyControllerBase
    {

        public function ArenaRestRoomController()
        {
            return;
        }// end function

        override protected function initServer() : void
        {
            return;
        }// end function

        override public function enterCopy(param1:TCopy) : void
        {
            AIManager.cancelAll();
            HeroArenaEnterWin.instance.hide();
            HeroArenaMainWin.instance.show();
            return;
        }// end function

        override public function leaveCopy() : void
        {
            if (HeroArenaMainWin.isViewShow())
            {
                HeroArenaMainWin.instance.hide();
            }
            if (HeroArenaResultWin.isViewShow())
            {
                HeroArenaResultWin.instance.hide();
            }
            if (HeroArenaFightDetailWin.isViewShow())
            {
                HeroArenaFightDetailWin.instance.hide();
            }
            if (HeroArenaMatchWaitingView.isViewShow())
            {
                HeroArenaMatchWaitingView.instance.hide();
            }
            if (HeroArenaTimerWin.isViewShow())
            {
                HeroArenaTimerWin.instance.hide();
            }
            return;
        }// end function

    }
}
